package com.shuzu;

import java.util.Scanner;

public class Shu03 {
    public static void main(String[] args) {
        int[] arr = new int[6];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < arr.length; i++) {
            System.out.println("请第" + (i + 1) + "评委打分");
            int tes = sc.nextInt();
            if (tes < 0 || tes > 100) {
                System.out.println("你的输入有误重新输入");
                i--;
            } else {
                arr[i] = tes;
            }
        }
        int num = arr[0];
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] > num) {
                num = arr[i];

            }
        }
        System.out.println("最高分" + num);
        int numo = arr[0];
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] < numo) {
                numo = arr[i];

            }
        }
        System.out.println("最低分" + numo);
        int th = 0;
        for (int i = 0; i < arr.length; i++) {
            th += arr[i];

        }
        System.out.println("总和" + th);
        int cs = (th - num - numo) / 4;
        System.out.println(cs);

    }
}
